]> git.neil.brown.name Git - wiggle.git/commitdiff
Makefile: make it easy to change warning flags.
authorNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 01:54:26 +0000 (12:54 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 01:54:26 +0000 (12:54 +1100)
Some people need to get rid of "-Werror".
Make that easier wit
  make CWFLAGS=

Reported-by: Christian Sonne
Signed-off-by: NeilBrown <neilb@suse.de>
Makefile

index 74cff0be9711cc1f28142225abe5d8b249023331..c118623dcbfb9039e7d6780833caa0e3de77625b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,10 @@
 #OptDbg=-O3
 #OptDbg=-O3 -march=pentium2
 OptDbg=-ggdb
-CFLAGS=$(OptDbg) -I. -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
+ifndef CWFLAGS
+CWFLAGS=-Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
+endif
+CFLAGS=$(OptDbg) -I. $(CWFLAGS)
 
 # STRIP = -s
 INSTALL = /usr/bin/install